<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title i18n="new_tab">new tab</title>
    <link rel="stylesheet" href="./newTab/newTab.css"/>
</head>
<body>
    <div id="app" class="app-new-tab">
        <div class="new-tab-header">
            <div class="header-left"></div>
            <div class="new-tab-search">
                <div class="box-search-input">
                    <input
                        class="app-input"
                        v-model="cardSearchText"
                        @input="onChangeCardSearchText"
                        placeholder="请输入搜索内容"
                    />
                </div>
                <svg-icon-menu></svg-icon-menu>
            </div>
        </div>
        <div class="new-tab-body" @contextmenu="onContextMenuBody">
            <div class="card-list">
                <new-tab-card
                    v-for="(cardInfo, cardIndex) in cardList"
                    :key="`card-info-${cardIndex}`"
                    :card-info="cardInfo"
                ></new-tab-card>
            </div>
        </div>
        <body-menu
            ref="menu"
            @click_action="onMenuAction"
        ></body-menu>
    </div>
    <script src="./newTab/newTab.js"></script>
</body>
</html>
